package com.baidu.infinity.ui.util

import androidx.room.TypeConverter
import java.util.Date

class DateTypeConverter {
    @TypeConverter
    fun DateToLong(date: Date): Long{
        return date.time
    }
    @TypeConverter
    fun LongToDate(time: Long): Date{
        return Date(time)
    }
}